package com.gavin.utils;

public class StringUtils {

	/**
	 * 首字母转小写
	 * @param str
	 * @return
	 */
	public static String toLowerFrist(String str) {  
		char[] ch = str.toCharArray();  
		if (ch[0] >= 'A' && ch[0] <= 'Z') {  
			ch[0] += 32;  
		}  
		return String.valueOf(ch);  
	}
	
	/**
	 * 首字母转大写
	 * @param str
	 * @return
	 */
	public static String toUpperFrist(String str) {  
		char[] ch = str.toCharArray();  
		if (ch[0] >= 'a' && ch[0] <= 'z') {  
			ch[0] -= 32;  
		}  
		return String.valueOf(ch);  
	}
	
    public static boolean isBlank(final String value) {
        return value==null || "".equals(value);
    }
	
}
